<?php
/**
 * 全局配置
 * Class GlobalConfig
 */
class GlobalConfig
{
	/**
	 * 平台配置
	 */
	const PLATFORM_ANDROID = 1; //Android
	const PLATFORM_IOS = 2; //IOS

	public static $cache_pass = "majiangcache";
	
	public static $logger = null;
	
	public static $debug = true;

	public static $redis_expire = array(
		'visit_log' => 180, //回访访码保存（天数）
		'paiju_log' => 1, //牌局日志保存（天数）
		'game_user_token' => 1200, //Token库的UserKey保存时间（秒数）
	);

	/*微信应用配置*/
	public static $weixin_config = array(
		'app_id'          => 'wx0cdbfba1f100455f',
		'app_secret'      => 'df7a086e0c31c4064d0ce7a89bb9bb8c',
		//根据Code获取access_token
		'access_token_uri' => 'https://api.weixin.qq.com/sns/oauth2/access_token?appid=%s&secret=%s&code=%s&grant_type=authorization_code',
		//access_token续期
		'refresh_uri'     => 'https://api.weixin.qq.com/sns/oauth2/refresh_token?appid=%s&grant_type=refresh_token&refresh_token=%s',
		//根据access_token获取用户个人信息
		'user_info_uri'    => 'https://api.weixin.qq.com/sns/userinfo?access_token=%s&openid=%s'
	);
}
?>
